<?php
include"config.php";
$id = $_GET['id'];
//echo $id;
if($_REQUEST['cat'] == 'duration'){
	$kueri = mysql_query("delete from tbl_item_duration where id_item = '$id'");
}elseif($_REQUEST['cat'] == 'consumable'){
	$kueri = mysql_query("delete from tbl_item_consumable where id_item = '$id'");
}
if($kueri){
?>
<script>
alert("Data Berhasil di Delete");
window.location = "index.php?page=item"
</script>
<?php
}
?>